package com.work.cn.web.controller;


import com.work.cn.pojo.vo.CommentVo;
import com.work.cn.service.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/comment")
public class CommentController {
    @Autowired
    private CommentService commentService;

    @GetMapping("{questionId}")
    public List<CommentVo> getCommentByQuestionId(@RequestParam("questionId") String questionId){
        commentService.getCommentByQuestionId(questionId);
        return null;
    }
}
